/**************************************************************************
 * @doc EMV 
 * @module EMV |  
 * Source code for the EMV handling functions.
 *
 * Product         :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   SoftPay Development Team (I_SP2000).
 * <nl>Notes       :
 *
 * @head3 EMV Functions |
 * @index | EMV
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $Log: /SoftPay/SPK2SIM/Source/EMVSrc/EMVsrcdef.h $

1. vipin_k1 12/10/00 changed the cpacids to avaoid clashes with Amex.

********************************************************************************/

////////////////////////////////////////////////////////////////////
//
// D E F I N E S
//


#ifndef NONEMV
#define NONEMV 207
#endif

#define FORCE_ONLINE			1
#define FORCE_DECLINE			2

#define CASHBACK_AMT            1
#define SALE_AMT                2

/* Values for Online Failed flag */
#define EMV_COMMS_FAILURE     -1
#define EMV_COMMS_OK          -2

/* Values for EMV card decision flag */
#define EMV_GO_ONLINE      -1
#define EMV_OFFLINE_AUTH   -2
#define EMV_DECLINE        -3
#define EMV_VOICE_REFERRAL -4

#define EMV_TAG_NAME_START			26
#define EMV_TAG_NAME_END			26
#define EMV_DATA_START			29
#define EMV_DATA_END			29


#define MAX_APPL_TLVS   180
#define COLXN_BUFF_SZ   3000
#define TMP_BUF_SZ      500

/* Pinpad related.... */
#define ADD_NEW_KEY 0
#define BUILD_PINBLOCK 1
#define RESET_KEY 2

#define ROK 0
#define RERROR -1

#define MAX_LOOPS	100


#define STX	0x02
#define ETX	0x03
#define EOT	0x04
#define ACK	0x06
#define NAK	0x15
#define SUB	0x1A
#define FS	0x1C
#define SI	0x0F
#define SO	0x0E

#define INCORRECT_PIN	"INCORRECT PIN"
#define LAST_PIN_TRY	"LAST PIN TRY"
#define ENTER_YOUR_PIN	"ENTER YOUR PIN"
#define PINPAD_READY	"PINPAD READY"
#define PLEASE_WAIT		"PLEASE WAIT"

#define KEY_DIV_VALUE	"KEY DIV VALUE"

